export const USERS = 'users';
export const SIGN_IN = 'sign_in';
export const SIGN_UP = 'sign_up';
export const SETTINGS = 'settings';
export const PROFILE = 'profile';
export const PASSWORD = 'password';
export const USER_SETTINGS_CN = {
  [PROFILE]: '编辑个人资料',
  [PASSWORD]: '修改密码',
  oauth2: '第三方账号绑定',
};
export const ACTIVITIES = 'activities';

export const SPACES = 'spaces'; // 现在空间列表就放在了首页
export const GROUPS = 'groups';
export const JOINED = 'joined';
export const HOMEPAGE = 'homepage';
export const MEMBERS = 'members';
export const ANNOUNCEMENTS = 'announcements';
export const GROUPS_CN = {
  [HOMEPAGE]: '概览',
  [MEMBERS]: '成员',
  [ACTIVITIES]: '活跃',
  [ANNOUNCEMENTS]: '群公告',
  [SETTINGS]: '设置',
};

export const RECOMMEND = 'recommend';
export const EXPLORE = 'explore';
export const COLLECTED = 'collected';

export const SPACE_HOMEPAGE = 'homepage';
export const SPACE_RESOURCES = 'resources';
export const SPACE_RESOURCES_ATTACHES = 'resources/attaches';
export const SPACE_RESOURCES_SEARCH = 'resources/search';
export const SPACE_RESOURCES_CREATE = 'resources/new-';
export const SPACE_RESOURCES_UPDATE = 'resources/edit-';
export const SPACE_RESOURCES_DOCS = 'resources/docs-';
export const SPACE_RESOURCES_TREE = 'resources/tree-';
export const SPACE_ISSUES = 'issues';
export const SPACE_ISSUES_SEARCH = 'issues/search';
export const SPACE_CONTRIBUTIONS = 'contributions';
export const SPACE_CN = {
  [SPACE_HOMEPAGE]: '主页',
  [SPACE_RESOURCES]: '资源区',
  [SPACE_ISSUES]: '讨论区',
  [SPACE_CONTRIBUTIONS]: '贡献区',
  [GROUPS]: '学习群组',
  [MEMBERS]: '成员',
  [SETTINGS]: '设置',
};

export const ISSUES_ALL = 'all';
export const ESSENCE = 'essence'; // 精华
export const ISSUES_COLLECTED = 'collected';

export const CREATE = 'new';
export const UPDATE = 'edit';
export const JOIN = 'join';

export const SEARCH = 'search';

export const UNSOLVED = 'unsolved';
export const ACCEPTED = 'accepted';
export const UNACCEPTED = 'unaccepted';
export const ALL = 'all';

export const NOTIFICATIONS = 'notifications';

export const QUESTIONNAIRES = 'questionnaires';
export const PREVIEW = 'preview';
export const RELEASE = 'release';
export const FILL_IN = 'fill_in';

export const FEEDBACK = 'feedback';

export const ADMIN = 'admin';
export const APPLICATION_FOR_PUBLIC_SPACES = 'application_for_public_spaces';

export const COMMUNITIES = 'communities';
export const RELATED = 'related';
export const INVITE = 'invite';
